package com.tyk.bookstore.back.system.model.result;


import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description MenuResultEnum
 */
public enum MenuResultEnum implements ResultEnum {

    MENU_NOT_FOUND(3_01_04_01, "菜单不存在"),
    MENU_PARENT_NOT_FOUND(3_01_04_02, "父级菜单不存在"),
    MENU_NAME_ALREADY_EXISTS(3_01_04_03, "菜单名称已存在"),
    MENU_PATH_ALREADY_EXISTS(3_01_04_04, "菜单路径已存在");

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.message;
    }


    MenuResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private final Integer code;

    private final String message;
}
